#include <iostream>
#include <map>
using namespace std;

map<string,int> ma;

signed main()
{
	int m,n,s;
	cin>>m>>n>>s;
	string str;
	int i;
	for(i=1;i<=s&&i<=m;i++){
		cin>>str;
	}
	if(i-1==s){
		cout<<str<<"\n";
		ma[str]++;
	}
	int cnt = 0;
	for(;i<=m;i++){
		cnt++;
		cin>>str;
		if(cnt==n){
			if(!ma[str]){
				cout<<str<<"\n";
				ma[str]++;
				cnt = 0;
			}
			else{
				cnt--;
			}
		}
		
	}
	if(ma.empty())	cout<<"Keep going...\n";
	return 0;
}
